package cn.wolfcode.trip.base.domain;

import lombok.Getter;
import lombok.Setter;

@Setter
@Getter
//用户
public class User {
    private Long id; //用户的id

    private String email;//邮箱

    private String nickName;//昵称

    private String password;//密码

    private String place;//地址

    private String headImgUrl;//头像

    private int gender = 1;//性别

    private String coverImgUrl;//背景图

    private String sign;//个性签名

    private int fans;//关注数

    public String getGenderDisplay(){
        if (gender == 1){
            return "女";
        }else if (gender == 0){
            return "男";
        }
        return "保密";
    }
}